package gcu.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by haol on 2016/9/26.
 */
public class SFormt {

      public static String NOWDATE_y_M_d(){
            SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
            return format.format(new Date());
      }
      public static String NOWDATE_y_M_dhms(){
            SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
            return format.format(new Date());
      }
      public static String NOWDATE_yMd(){
            SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd");
            return format.format(new Date());
      }
}